package com.hougong.im.body.notice;

import com.hougong.im.annotation.ProtocolField;
import com.hougong.im.body.BaseBodyCodec;

/**
 *  对方 添加/拒绝 添加你为好友 0x0007 消息类型 0x03
 */
public class AcceptOrRejectFriendNotice extends BaseBodyCodec<AcceptOrRejectFriendNotice> {
    @ProtocolField(sort = 1)
    private short userNameLen;
    @ProtocolField(sort = 2,lenField = "userNameLen")
    private String userName;
    /**
     * 【拒绝为0x00 添加为0x01】
     */
    @ProtocolField(sort = 3)
    private byte operateType;
    @ProtocolField(sort = 4)
    private long operateTimestamp;
    /**
     *  【0x00表示未读  0x01表示已读】
     */
    @ProtocolField(sort = 5)
    private byte ifRead;
    @ProtocolField(sort = 6)
    private long applyAddFriendId;

    public short getUserNameLen() {
        return userNameLen;
    }

    public void setUserNameLen(short userNameLen) {
        this.userNameLen = userNameLen;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public byte getOperateType() {
        return operateType;
    }

    public void setOperateType(byte operateType) {
        this.operateType = operateType;
    }

    public long getOperateTimestamp() {
        return operateTimestamp;
    }

    public void setOperateTimestamp(long operateTimestamp) {
        this.operateTimestamp = operateTimestamp;
    }

    public byte getIfRead() {
        return ifRead;
    }

    public void setIfRead(byte ifRead) {
        this.ifRead = ifRead;
    }

    public long getApplyAddFriendId() {
        return applyAddFriendId;
    }

    public void setApplyAddFriendId(long applyAddFriendId) {
        this.applyAddFriendId = applyAddFriendId;
    }

    @Override
    public String toString() {
        return "AcceptOrRejectFriendNotice{" +
                "userNameLen=" + userNameLen +
                ", userName='" + userName + '\'' +
                ", operateType=" + operateType +
                ", operateTimestamp=" + operateTimestamp +
                ", ifRead=" + ifRead +
                ", applyAddFriendId=" + applyAddFriendId +
                '}';
    }
}
